#pragma once

#include "utilities.h"
#include "CCar.h"


class CCamera
{
public:
	CCamera(ISceneManager* smgr, CCar& carToFolow);
	~CCamera(void);

	void update(void);
	void switchCam(void);

	enum {CAM_FOLLOW = 0, CAM_FREE};
	
private:
	ISceneManager* smgr;
	ICameraSceneNode* camera[2];
	CCar* car;

	f32	camAngle;
	f32	targetAngle;

	f32	distance;
	f32	followStep;

	u32	activeCam;
	u32	camNumber;
};

